package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 何华树
 * Date: 2024-09-04
 * Time: 19:14
 */
public class Test2 {
    public static void main1(String[] args) {
        Dog dog1 = new Dog("旺财",10);
        Dog dog2 = new Dog("旺财",10);
        System.out.println(dog1.equals(dog2));

        System.out.println(dog1.hashCode());
        System.out.println(dog2.hashCode());
    }
}
